import re
def get_email_tel(str_tel_email):
    """

    :param str_tel_email:  联系电话：0755-26770000邮箱：press@zte.com.cn
    :return:
    """

    Remail = re.search(pattern="[0-9a-zA-Z_\.]{0,19}@[0-9a-zA-Z\-]{1,13}\.[com,cn,net]{1,3}", string=str_tel_email)
    Rtel = re.search(pattern="[0-9\-]{11,15}", string=str_tel_email)

    if Remail:
        email = Remail.group(0)
    else:
        email = '暂无'
    if Rtel:
        tel = Rtel.group(0)
    else:
        tel = '暂无'

    return email,tel

if __name__ == '__main__':

    s = "联系电话：0715-23770000邮箱：travel2040@163.com"
    s2 = "联系电话：0515-26770000邮箱：travel2041@163.com"

    print(get_email_tel(s))
    print(get_email_tel(s2))
